function mpc = system7

%   MATPOWER



%%-----  Power Flow Data  -----%%
%% system MVA base
mpc.baseMVA = 100;

%% bus data
%	bus_i	type	Pd	Qd	Gs	Bs	area	Vm	Va	baseKV	zone	Vmax	Vmin
mpc.bus = [
1	3	0	0	0	0	1	1	0	110	1	1.1	0.9
2	1	0	0	0	0	1	1	0	110	1	1.1	0.9
3	1	0	0	0	0	1	1	0	110	1	1.1	0.9
4	1	32	24	0	0	1	1	0	110	1	1.1	0.9
5	1	0	0	0	0	1	1	0	110	1	1.1	0.9
6	1	20	15	0	0	1	1	0	110	1	1.1	0.9
7	1	30	15	0	0	1	1	0	110	1	1.1	0.9

];

%% generator data
%	bus	Pg	Qg	Qmax	Qmin	Vg	mBase	status	Pmax	Pmin	Pc1	Pc2	Qc1min	Qc1max	Qc2min	Qc2max	ramp_agc	ramp_10	ramp_30	ramp_q	apf
mpc.gen = [
1	0	0	180	-180	1	110	1	180	0	0	0	0	0	0	0	0	0	0	0	0


];

%% branch data
%	fbus	tbus	r	x	b	rateA	rateB	rateC	ratio	angle	status	angmin	angmax
mpc.branch = [
1	2	0.0310	0.0853	0	250	250	250	0	0	1	-360	360
1	3	0.0621	0.1705	0	250	250	250	0	0	1	-360	360
1	3	0.0621	0.1705	0	250	250	250	0	0	1	-360	360
2	4	0.0000	0.3050	0	250	250	250	1	0	1	-360	360
2	4	0.0000	0.3050	0	250	250	250	1	0	1	-360	360
2	5	0.0517	0.1421	0	250	250	250	0	0	1	-360	360
3	5	0.0414	0.1137	0	250	250	250	0	0	1	-360	360
3	6	0.0000	0.3050	0	250	250	250	1	0	1	-360	360
5	7	0.0000	0.3050	0	250	250	250	1	0	1	-360	360
5	7	0.0000	0.3050	0	250	250	250	1	0	1	-360	360

];

